let deta = new Vue({
    el: '.page-content',
    data: {
        office: {}
    },
    methods: {
        updateOffice:function () {
            axios({
                url:`office/updateOffice`,
                method:'post',
                data:this.office
            }).then(rs=>{
                if (rs.data.success) {
                    parent.layer.message=rs.data.msg;
                    let index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index)
                }
            }).catch(error=>{
                layer.msg(error)
            })
        },
    },
    created: function () {
        this.office=parent.layer.office
    }
});